<script src="/vue.js"></script>

<div id="app">
    <button v-on:click="count+=Math.random()">随机数</button>
    <p>随机数总和：{{count}}</p>
</div>

<script>
    var vm = new Vue ({
        el: "#app",
        data: {
            count: 0
        }
    })
</script>

<style>

</style>